/*
 * Author: 李波(Edwin Lee)
 * Date: 2024-06-21 19:33:21
 * FilePath: /chat/include/server/model/group.hpp
 * LastEditTime: 2024-06-23 13:08:20
 * version: 1.0
 * Description: 
 */
#ifndef GROUP_H
#define GROUP_H

#include "groupuser.hpp"

#include <string>
#include <vector>
using namespace std;

class Group
{
public:
    Group(int id=-1, string name="", string desc = "")
        :id_(id)
        ,name_(name)
        ,desc_(desc)
    {}

    void setId(int id){id_ = id;}
    void setName(string name){name_ = name;}
    void setDesc(string desc){desc_ = desc;}

    int getId(){return id_;}
    string getName(){return name_;}
    string getDesc(){return desc_;}
    vector<GroupUser>& getUsers(){return gusers_;}
private:
    int id_;
    string name_;
    string desc_;
    vector<GroupUser> gusers_;
};

#endif